.viewer-layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: #010409;
}

/* TDC全屏模式 - 隐藏标签页后的优化布局 */
.viewer-layout.tdc-fullscreen {
  height: 100vh;
}

.viewer-layout.tdc-fullscreen .viewer-container {
  height: 100vh;
}

.view-tabs {
  display: flex;
  background: #21262d;
  border-bottom: 1px solid #30363d;
  overflow-x: auto;
  flex-shrink: 0;
}

.view-tab {
  flex: 1;
  min-width: 120px; /* 从160px减少到120px */
  padding: 6px 12px; /* 从10px 16px减少到6px 12px */
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #8b949e;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px; /* 从2px减少到1px */
  font-size: 12px; /* 从13px减少到12px */
}

.view-tab:hover:not(.disabled) {
  background: #30363d;
  color: #c9d1d9;
}

.view-tab.active {
  background: #30363d;
  color: #58a6ff;
  border-bottom-color: #58a6ff;
}

.view-tab.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.tab-title {
  font-weight: 600;
}

.tab-status {
  font-size: 9px; /* 从10px减少到9px */
  color: #8b949e;
  background: #21262d;
  padding: 1px 3px; /* 从1px 4px减少到1px 3px */
  border-radius: 2px;
  border: 1px solid #30363d;
}

.view-tab.active .tab-status {
  color: #58a6ff;
  border-color: #58a6ff;
  background: rgba(88, 166, 255, 0.1);
}

.viewer-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #0d1117;
  overflow: hidden;
  min-height: 0;
}

.viewer-content {
  flex: 1;
  display: flex;
  flex-direction: row;
  background: #0d1117;
  overflow: hidden;
  min-height: 0;
  width: 100%;
  height: 100%;
}

.viewer-content.split-view {
  display: flex;
  flex-direction: row;
  height: 100%;
}

.tdc-split-container {
  display: flex;
  width: 100%;
  height: 100%;
  background: #0d1117;
  min-height: 0;
  overflow: hidden;
}

.empty-viewer {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d1117;
  padding: 40px;
}

.empty-content {
  text-align: center;
  max-width: 400px;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.7;
}

.empty-content h3 {
  margin: 0 0 8px 0;
  color: #f0f6fc;
  font-size: 20px;
  font-weight: 600;
}

.empty-content p {
  margin: 0 0 24px 0;
  color: #8b949e;
  font-size: 14px;
  line-height: 1.5;
}

.empty-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #21262d;
  border: 1px solid #30363d;
  border-radius: 6px;
  font-size: 13px;
  color: #c9d1d9;
}

.step:before {
  content: "→";
  color: #58a6ff;
  font-weight: bold;
}

.view-info {
  background: #21262d;
  border-top: 1px solid #30363d;
  padding: 6px 16px;
  flex-shrink: 0;
}

.view-description {
  font-size: 12px;
  color: #8b949e;
  text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .view-tabs {
    overflow-x: auto;
  }
  
  .view-tab {
    min-width: 120px;
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .empty-viewer {
    padding: 20px;
  }
  
  .empty-content h3 {
    font-size: 18px;
  }
  
  .empty-content p {
    font-size: 13px;
  }
  
  .view-info {
    padding: 4px 12px;
  }
}

/* TDC分析面板样式 */
.tdc-image-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #0d1117;
  border-right: 1px solid #30363d;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.tdc-analysis-panel {
  flex: 1;
  min-width: 350px;
  background: #0d1117;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #21262d;
  border-bottom: 1px solid #30363d;
  flex-shrink: 0;
}

.panel-header h4 {
  margin: 0;
  color: #f0f6fc;
  font-size: 13px;
  font-weight: 600;
}

.panel-info {
  font-size: 11px;
  color: #8b949e;
  background: #30363d;
  padding: 3px 6px;
  border-radius: 3px;
  border: 1px solid #484f58;
}

.markers-saved-tip {
  color: #7c3aed;
  font-weight: 500;
  margin-left: 4px;
}

/* 退出TDC模式按钮 */
.exit-tdc-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  background: #f85149;
  border: 1px solid #da3633;
  border-radius: 5px;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.exit-tdc-btn:hover {
  background: #da3633;
  border-color: #b62324;
  transform: translateY(-1px);
}

.exit-tdc-btn:active {
  transform: translateY(0);
  background: #b62324;
}

.exit-icon {
  font-size: 14px;
  font-weight: bold;
}

.exit-text {
  font-size: 13px;
}

/* 响应式设计优化 */
@media (max-width: 1200px) {
  .tdc-analysis-panel {
    min-width: 300px;
  }
}

@media (max-width: 1400px) {
  .tdc-chart-panel {
    width: 450px;
  }
  
  .tdc-markers-panel {
    width: 340px;
  }
}

@media (max-width: 1200px) {
  .tdc-chart-panel {
    width: 400px;
  }
  
  .tdc-markers-panel {
    width: 320px;
  }
}

@media (max-width: 900px) {
  .tdc-split-container {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }
  
  .tdc-image-panel {
    border-right: none;
    border-bottom: 1px solid #30363d;
    flex: 1;
    min-height: 400px;
    height: auto;
  }
  
  .tdc-chart-panel {
    width: 100%;
    height: 350px;
    border-right: none;
    border-bottom: 1px solid #30363d;
  }
  
  .tdc-markers-panel {
    width: 100%;
    height: 250px;
    min-height: 200px;
  }
}

/* 血管提取模式样式 */
.viewer-layout.vessel-fullscreen {
  overflow: hidden;
}

.viewer-layout.vessel-fullscreen .viewer-container {
  height: 100vh;
}

.viewer-content.vessel-view {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.viewer-content.vessel-view .vessel-extraction-viewer {
  flex: 1;
  height: 100%;
}

/* TDC三栏布局样式 */
.tdc-chart-panel {
  width: 550px;
  flex-shrink: 0;
  background: #161b22;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #30363d;
}

.tdc-markers-panel {
  width: 380px;
  flex-shrink: 0;
  background: #161b22;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.tdc-markers-panel-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.tdc-markers-panel .marker-list {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.tdc-markers-panel .markers-container {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  max-height: 100%;
} 